package com.lucy.nepu.module.topic.event;

import com.lucy.nepu.module.htopic.entity.HorTopic;
import com.lucy.nepu.module.topic.entity.Topic;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.time.Clock;
import java.util.Map;

@Getter
public class TopicCreatedEvent extends ApplicationEvent {
    Topic topic;

    public TopicCreatedEvent(Object source,Topic topic) {
        super(source);
        this.topic = topic;
    }

    public TopicCreatedEvent(Object source, Clock clock) {
        super(source, clock);
    }

}